import personalCenter from './modules/personalCenter'
import personalSettings from './modules/personalSettings'
import msgCenter from './modules/msgCenter'
import newPersonalSettings from './modules/newPersonalSettings'
const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('views/index.vue')
  },
  {
    path: '/demo/index1',
    name: 'demo',
    component: () => import('views/demo/index1.vue'),
    meta: {
      title: '测试组件'
    }
  },
  ...personalCenter,
  ...personalSettings,
  ...msgCenter,
  ...newPersonalSettings,
  {
    path: '/404',
    name: 'notFound',
    meta: {
      title: ''
    },
    component: () => import(/* webpackChunkName: "notFound" */ 'views/errorPage/index.vue')
  },
  { path: '/:pathMatch(.*)', redirect: '/404', hidden: true }
]

export default routes
